// 导出Vue路由模块
export const routes = [
  {
    path: '/home',
    children: [
      {
        path: '/products/:id?',
        component: async () => import('@/components/Products.vue'),
      },
      {
        path: '/cart',
        component: async () => import('@/components/Cart.vue'),
      },
      {
        path: '/user',
        component: async () => import('@/components/User.vue'),
      },
    ],
  },
]
